
<%@ page import="directoryapp.Employee"%>
<html>
<head>
<title>search</title>
<style>
.display_box {
padding:4px; border-top:solid 1px #dedede; font-size:12px; height:30px;

}
.display_box:hover{
	background-color: red;
	cursor: pointer;
}
</style>
</head>
<body style="border: 1px solid #444444">
	<g:each in="${employeesInstanceList}" var="employeeInstance">
		<div class="display_box" align="left" onClick='window.location = "http://localhost:5678/directoryapp/employee/show/${employeeInstance.id}"'>
			<img src="http://localhost:5678/directoryapp/employee/image/${employeeInstance.id}"
			style="width: 25px; height: 25px; float: left; margin-right: 6px">
			${fieldValue(bean: employeeInstance, field: "firstName")}
			${fieldValue(bean: employeeInstance, field: "lastName")}<br />
			<span style="font-size: 9px; color: #999999">
				${fieldValue(bean: employeeInstance, field: "position")}
			</span>
		</div>
	</g:each>
</body>
</html>
